﻿@model EvertonApp.AdminWeb.Models.ComercioModel

<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <center><h4 class="modal-title">INSERCCIÓN COMERCIO</h4></center>
            </div>
            <div class="modal-body">
                <center>
                    <div class="modal-body">
                        <table  class="tabla_datos">
                            <tr>
                                <td>
                                    @Html.Label("nombreLabel", "Nombre:")
                                </td>
                                <td>
                                    @Html.TextBoxFor(mod => mod.Nombre, new { id = "Nombre", name = "NombreComercio", @Value = String.Empty } as object)
                                </td>
                            </tr> 
                            <tr>
                                <td>
                                    @Html.Label("telefonoLabel", "Teléfono:")
                                </td>
                                <td>
                                    @Html.TextBoxFor(mod => mod.Telefono, new { id = "Telefono", name = "TelefonoComercio", @Value = String.Empty } as object)
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    @Html.Label("direccionLabel", "Dirección:")
                                </td>
                                <td colspan="3">
                                    @Html.TextBoxFor(mod => mod.Direccion, new { id = "Direccion", name = "DireccionComercio", @Value = String.Empty } as object)
                                </td>
                            </tr>               
                        </table>
                    </div>
                </center>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary">Guardar</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $("document").ready(function () {
        $('#myModal2').modal('show');
    });
</script>